package com.zh.jetpackmvvm.network.manager

import com.zh.jetpackmvvm.callback.livedata.UnPeekLiveData


/**
 * @author :zhouh
 * email：zhouhe@sixarm.cn
 * time：2020-06-10
 * company：山东六臂网络科技有限公司
 * desc：网络变化管理者
 */
class NetworkStateManager private constructor() {

    val mNetworkStateCallback = UnPeekLiveData<NetState>()

    companion object {
        val instance: NetworkStateManager by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            NetworkStateManager()
        }
    }
}